export enum CouponApplicationType {
  NO_LIMIT = 0, // 无适用限制
  APPLICABLE_CATEGORY = 1, // 适用类别
  APPLICABLE_GOODS = 2 // 适用商品
}

export function couponApplicationTypeLabelOf(value: number): string {
  switch (value) {
    case CouponApplicationType.NO_LIMIT:
      return '无适用限制'
    case CouponApplicationType.APPLICABLE_CATEGORY:
      return '适用类别'
    case CouponApplicationType.APPLICABLE_GOODS:
      return '适用商品'
    default:
      return ''
  }
}
